<div class="title-menu">
    <h2>Bảng thống kê theo ngày</h2>
</div>
<nav class="bonus">
    <a href="<?php echo base_url("backend/orders/statM"); ?>">Thống kê theo tháng</a> | <a href="<?php echo base_url("backend/orders_detail/bestSelling"); ?>">Sản phẩm bán chạy</a>
</nav>
<article>
    <table cellspacing="0" cellpadding="5" border="1">
        <tr>                
            <th>Ngày</th>
            <th>Chi tiết</th>
            <th>Tổng tiền</th>           
        </tr>
        <?php
        if (isset($orders) && count($orders))
            foreach ($orders as $order) {
                ?>
                <tr>
                                       
                    <td><?php echo $order->order_time; ?></td>
                    <td><a href="<?php echo base_url("backend/orders_detail/stat").'/'.$order->order_time; ?>">Xem</a></td>
                    <td><?php echo number_format($order->total); ?></td>
                    
                </tr>        
                <?php
            }
        ?>
    </table>
    <?php if(isset($paging)) echo $paging;?>
</article>